#ifndef __TAPPLICATION__H__
#define __TAPPLICATION__H__

#include <qapplication.h>
#include <QtCore/QSettings>

#ifndef tApp
#define tApp (static_cast<TApplication *>(qApp))
#endif

class QLocalServer;
class TApplication : public QApplication
{
    Q_OBJECT
public:  
    TApplication(int argc, char **argv);
    ~TApplication();
    bool IsRunning();
    QSettings* Settings();
signals:
    void activateMainWindow();
private slots:  
    void NewLocalConnection();  
private:
    QLocalServer *m_localServer;  
    bool m_isRunning;
    QSettings *m_setting;
};

#endif // __TAPPLICATION__H__